import { createRouter,createWebHashHistory } from "vue-router";
import MainLayout from "@/layout/MainLayout.vue";
import SubpageLayout from "@/layout/SubpageLayout.vue";
import tabbar from "./tabbar";
const routes: any = [
  {
    path: "/",
    component: MainLayout,
    children: tabbar,
    redirect:tabbar[0].path
  },
  {
    path: "/SubpageLayout",
    component: SubpageLayout,
  },
];
const router = createRouter({
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes,
});
export default router;
